package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.WeatherDao;
import mx.entity.Weather;
import mx.service.WeatherService;

@Service
public class WeatherServiceImpl implements WeatherService {
	@Resource
	private WeatherDao weatherDao;

	public List<Weather> list(Map<String, Object> map) {
		
		return weatherDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {
	
		return weatherDao.getTotal(map);
	}

	public Integer add(Weather weather) {
	
		return weatherDao.add(weather);
	}

	
}
